package com.supervision.manage.service

import com.supervision.domain.bean.vo.CaseUserVO
import com.supervision.manage.mapper.CaseUserMapper
import com.supervision.domain.model.CaseUser
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

@Service("CaseUserService")
class CaseUserService {

    companion object {
        private val logger = org.slf4j.LoggerFactory.getLogger(CaseUserService::class.java)
    }

    @Autowired
    lateinit var caseUserMapper: CaseUserMapper

    fun select(condition: CaseUser, otherCondition: String?): List<CaseUser> {
        return caseUserMapper.select(condition, otherCondition)
    }

    fun getCaseUserList(caseId: Long): List<CaseUserVO> {
        return caseUserMapper.getCaseUserList(caseId)
    }
}
